# -*- coding: utf-8 -*-#
'''
Created on 2012-1-13

@author: kom
'''

from settings import *

app = web.application(urls, globals())

if web.config.get('_session') is None:
    session = web.session.Session(app, web.session.DiskStore('sessions'))
    web.config._session = session
else:
    session = web.config._session



if __name__ == "__main__":
    if os.name == "posix":
        web.wsgi.runwsgi = lambda func, addr=("127.0.0.1", 9000): web.wsgi.runscgi(func, addr)
    app.run()